package com.yic.module.mes.controller.admin.plan.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yic.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 生产计划分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PlanPageReqVO extends PageParam {

    @Schema(description = "计划单号")
    private String code;

    @Schema(description = "工单类型", example = "1")
    private Integer type;

    @Schema(description = "产品生产信息ID", example = "16289")
    private Long itemProduceId;

    @Schema(description = "工厂", example = "14658")
    private Long factoryId;

    @Schema(description = "生产车间", example = "14658")
    private Long workshopId;

    @Schema(description = "是否紧急")
    private Integer emergent;

    @Schema(description = "批次号")
    private String batchNo;

    @Schema(description = "计划开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planStartTime;

    @Schema(description = "计划完成时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planCompleteTime;

    @Schema(description = "计划状态", example = "2")
    private Integer status;

}
